package com.ruoyi.common.core.domain.heytalk.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author zhusy
 * @since 2021/10/28
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("普通登录入参DTO")
public class LoginDTO {

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", name = "userName", required = true)
    @NotBlank(message = "用户名不能为空")
    @Size(max = 30, message = "登录用户名长度限制30字符以内")
    private String userName;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码", name = "password", required = true)
    @NotBlank(message = "用户密码不能为空")
    @Size(max = 200, message = "登录密码长度限制200字符以内")
    private String password;

    /**
     * 验证码
     */
    @ApiModelProperty(value = "验证码", name = "code")
    @Size(max = 50, message = "验证码长度限制50字符以内")
    private String code;

    /**
     * 唯一标识
     */
    @ApiModelProperty(value = "唯一标识", name = "uuid")
    @Size(max = 200, message = "唯一标识长度限制200字符以内")
    private String uuid = "";

}
